package com.shujia.wyh.day08.homework.test2;

public class Coffee extends Drink {

    //配料成员变量
    private String peiliao;

    public Coffee() {

    }

    public Coffee(int volume, String name, String peiliao) {
        super(volume, name);
        this.peiliao = peiliao;
    }

    public String getPeiliao() {
        return peiliao;
    }

    public void setPeiliao(String peiliao) {
        this.peiliao = peiliao;
    }

    @Override
    public void show() {
        System.out.println("名称："+getName());
        System.out.println("添加配料："+peiliao);
        System.out.println("容量："+getVolume());
    }
}
